package com.mall.vo.eshop;

import java.io.Serializable;

import com.mall.pojo.Eshop;
import com.mall.pojo.EshopCompany;
import com.mall.pojo.EshopTrademark;
import com.mall.pojo.EshopUserInfo;
import com.mall.pojo.SaleEshop;
import com.mall.pojo.User;

public class SaleEshopVO implements Serializable,Comparable<SaleEshopVO>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8843018181931465750L;
	private Eshop Eshop;
	private SaleEshop saleEshop;
	private EshopCompany eshopCompany;
	private EshopTrademark eshopTrademark;
	private User user;
	private EshopUserInfo eshopUserInfo;
	private String categoryName;
	
	
	
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public EshopUserInfo getEshopUserInfo() {
		return eshopUserInfo;
	}
	public void setEshopUserInfo(EshopUserInfo eshopUserInfo) {
		this.eshopUserInfo = eshopUserInfo;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public SaleEshop getSaleEshop() {
		return saleEshop;
	}
	public void setSaleEshop(SaleEshop saleEshop) {
		this.saleEshop = saleEshop;
	}
	public EshopCompany getEshopCompany() {
		return eshopCompany;
	}
	public void setEshopCompany(EshopCompany eshopCompany) {
		this.eshopCompany = eshopCompany;
	}
	public EshopTrademark getEshopTrademark() {
		return eshopTrademark;
	}
	public void setEshopTrademark(EshopTrademark eshopTrademark) {
		this.eshopTrademark = eshopTrademark;
	}
	public Eshop getEshop() {
		return Eshop;
	}
	public void setEshop(Eshop eshop) {
		Eshop = eshop;
	}
	public SaleEshopVO(){
		
	}
	public SaleEshopVO(String categoryName){
		this.categoryName = categoryName;
	}
	
	@Override
	public int compareTo(SaleEshopVO arg0) {
		  int i = categoryName.compareTo(arg0.getSaleEshop().getCategoryName()); //比较名字字符串  
	       /* if (i == 0) { //如果名字一样，则继续比较年龄  
	            return age - another.age;  
	        } else { //首先比较名字，名字不一样，则返回比较结果  
	            return i;  
	        }  */
		return i;
	}
	
	

}
